<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
    <link rel="stylesheet" href="./reset.css">
    <link rel="stylesheet" href="//at.alicdn.com/t/font_2298107_8rneied0kxv.css">
    <title><%= htmlWebpackPlugin.options.title %></title>
  </head>
  <body>
    <noscript>
      <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
    </noscript>
    <div id="app"></div>
    <!-- built files will be auto injected -->

    <script>
      // function resizeAll() {
      //   // 1. 获取屏幕的宽度
      //   let clientWidth = document.documentElement.clientWidth
      //   // 2. 将屏幕的宽度等分,等分的目的:降低单位rem值的大小,便于换算,提高精确度
      //   let rem = clientWidth / 10
      //   // 3. 设置根节点字体的大小
      //   document.documentElement.style.fontSize = rem + 'px'
      //   // 4. 设置body字体大小
      //   document.body.style.fontSize = '16px'
      // }

      // window.addEventListener('pageshow', () => {
      //   resizeAll()
      // })
      // let timer
      // window.addEventListener('resize', () => {
      //   timer && clearTimeout(timer)
      //   timer = setTimeout(() => {
      //     console.log('resize')
      //     resizeAll()
      //   }, 2000)
      // })
    </script>
  </body>
</html>
